package ch5.ext;

public final class GoldFish extends Pet {
	public GoldFish(String name, int health, int love, String type) {
		super(name, health, love, type);
	}

	@Override
	public void shout() {
		System.out.println("我不会叫，只会吐泡泡");
	}

	@Override
	public void run() {
		System.out.println("我只会游泳！");
	}

	public void swim() {
		System.out.println(super.getName() + "在水里游泳！！！");
	}

	@Override
	public String toString() {
		return "我是一条金鱼 ";
	}
}
